module.exports = {
    presets: [
        ['@babel/preset-env', {}],//编译es6语法
        ['@babel/preset-react', {}],//编译jsx语法
    ],
    //插件
    plugins: [
        ["@babel/plugin-proposal-decorators", { "version": "legacy" }],
        "@babel/plugin-proposal-class-properties"
    ]
}